import React, { useEffect } from 'react'
import axios from "axios"

export default function Reg() {
    const getlist = async()=>{
        let {data} = await axios.get("http://localhost:3000/reg")
    }

    useEffect(()=>{
        getlist()       
    })
  return (
    <div>
      <div>
        <div>
            用户名：<input type="text" />
        </div>
        <div>
            密码：<input type="text" />
        </div>
        <button>注册</button>
      </div>
    </div>
  )
}
